GPP = g++ -O2 -Wall

M = Main.o
S = Scheduler.o
P = Process.o
F = ComparisonFinish.o
C = ComparisonStart.o
U = Utils.o

Aprog: $M $S $P $F $C $U
	$(GPP) -o Aprog $M $S $P $F $C $U

Main.o: Main.h Main.cpp
	$(GPP) -o Main.o -c Main.cpp

Scheduler.o: Scheduler.h Scheduler.cpp
	$(GPP) -o Scheduler.o -c Scheduler.cpp

Process.o: Process.h Process.cpp
	$(GPP) -o Process.o -c Process.cpp

ComparisonFinish.o: ComparisonFinish.h ComparisonFinish.cpp
	$(GPP) -o ComparisonFinish.o -c ComparisonFinish.cpp

ComparisonStart.o: ComparisonStart.h ComparisonStart.cpp
	$(GPP) -o ComparisonStart.o -c ComparisonStart.cpp

Utils.o: Utils.h Utils.cpp
	$(GPP) -o Utils.o -c Utils.cpp

clean:
	\rm *.o *~ 
